#ifndef AXIL_CMD_H
#define AXIL_CMD_H


typedef struct {
    unsigned int baseAddr;
    int axil_cmd_handler;
    unsigned int* axil_cmd_VirtualAddress;
} axil_cmd_handle;

int axil_cmd_setup(axil_cmd_handle *handle, unsigned int baseAddr);
void axil_cmd_set(axil_cmd_handle *handle, int num, unsigned int val);
unsigned int axil_cmd_get(axil_cmd_handle *handle, int num);

//sensor控制接口
void sensor_spi_set(axil_cmd_handle *handle,int register_offset, int register_status, unsigned int TX_ADDR,unsigned int TX_DATA);
unsigned int sensor_spi_get(axil_cmd_handle *handle, int register_offset, int register_status, int register_read,unsigned int RX_ADDR);

#endif // AXIL_CMD_H
